#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;cin>>n;
    int r[n];
    for(int i=0;i<n;i++)cin>>r[i];
    sort(r,r+n);
    vector<int>a(0);
    int ans=1;
    for(int i=0;i<n-1;i++){
        if(r[i+1]!=r[i]){
            a.push_back(ans);
            ans=1;
        }
        else ans++;
    }
    a.push_back(ans);
    int len=a.size();
    for(int i=0;i<len-1;i++){
        if(a[i+1]>=a[i])continue;
        else{
            a[i+1]=a[i];
        }
    }
    cout<<a[len-1];
    return 0;
}
